#ifndef SOCKET_H_
#define SOCKET_H_

#include <winsock2.h>

#pragma comment(lib, "ws2_32.lib")

namespace FURY
{
	namespace MODULE
	{
		class Socket
		{
		protected:
			SOCKET	m_socket;

		public:
			Socket(void);
			~Socket(void);

		public:
			bool Connect(const char *szIP, int nPort);
			int	Send(const char *buf, int nSize);
			int Receive(char *buf,int nBufferSize);
			void Close(void);

			bool IsConnected(void);
		};

	};
};

#endif	//	SOCKET_H_